.history-chats {
  margin-top: 15px;
  border-top: 1px solid #efefef;
  padding: 20px 0;
  flex: 1;
  overflow-y: auto;
  padding-bottom: 140px;
}

.history-chats::-webkit-scrollbar {
  width: 0;
}

.history-charts__group {
  border-top: 1px solid #efefef;
  border-bottom: 1px solid #efefef;
  padding-top: 20px;
}

.history-chats__title {
  display: flex;
  flex-flow: row nowrap;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #efefef;
  padding: 0 24px 20px 24px;
}

.history-chats__title > span {
  color: #6b696a;
  font-size: 14px;
}

.history-chats__title > button {
  color: #5661f7;
  font-size: 16px;
  background: none;
  border: none;
}

.history-chats__title > button:hover {
  filter: brightness(0.9);
}

.history-chats__content {
  padding: 0 0 0 16px;
}

.history-chats__content__item {
  position: relative;
  display: flex;
  flex-flow: row nowrap;
  align-items: center;
  justify-content: flex-start;
  font-weight: 500;
  padding: 8px 12px;
  height: 50px;
  box-sizing: border-box;
  margin-bottom: 8px;
}

.history-chats__content__item-active {
  background: #f6f6ff;
  border-top-left-radius: 25px;
  border-bottom-left-radius: 25px;
}

.history-chats__content__item-active .history-chats__content__item-right {
  display: flex;
}

.history-chats__content__item > img {
  width: 18px;
  height: 18px;
  margin-right: 12px;
}

.history-chats__content__item > p {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.history-chats__content__item:active > p {
  color: #5661f7;
}

.history-chats__content__item-right {
  background: #eef0fd;
  border-top-left-radius: 25px;
  border-bottom-left-radius: 25px;
  position: absolute;
  top: 0;
  right: 0;
  padding: 8px 12px;
  height: 50px;
  box-sizing: border-box;

  display: none;
  flex-flow: row nowrap;
  align-items: center;
  justify-content: center;
}

.history-chats__content__item-right::before {
  content: " ";
  display: block;
  width: 20px;
  height: 20px;
  background: url("../../assets/border-top.png") no-repeat;
  background-size: 20px 20px;
  position: absolute;
  right: 0;
  top: -20px;
}

.history-chats__content__item-right::after {
  content: " ";
  display: block;
  width: 20px;
  height: 20px;
  background: url("../../assets/border-bottom.png") no-repeat;
  background-size: 20px 20px;
  position: absolute;
  right: 0;
  bottom: -20px;
}

.history-chats__content__item-right > button {
  background: none;
  outline: none;
  border: none;
}

.history-chats__content__item-right > button > img {
  height: 16px;
  width: 16px;
}

.history-chats__content__item-info {
  flex: 1;
  min-width: 0;
}

.history-chats__content__item-info .chat-title {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0;
  font-size: 14px;
}

.history-chats__content__item-info .chat-time {
  font-size: 12px;
  color: #999;
  margin: 4px 0 0 0;
}

/* 调整现有样式 */
.history-chats__content__item {
  height: auto;
  min-height: 50px;
  padding: 12px;
}

.history-chats__search {
  padding: 0 16px 16px;
  margin-bottom: 10px;
}

.history-chats__search input {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #e8e8e8;
  border-radius: 6px;
  font-size: 14px;
  outline: none;
  background: #f6f6ff;
}

.history-chats__search input:focus {
  border-color: #5662f6;
  background: #fff;
}

/* 调整搜索结果的样式 */
.history-chats__content__item.search-result {
  background-color: #f6f6ff;
}
